<template>
  <div class="float-right">
    <el-button type="text" @click="cancel">注销</el-button>
  </div>
</template>

<script setup lang="ts">


// 注销
import router from "../router";

const cancel = () => {
  localStorage.removeItem('username')
  router.push('/login')
}
</script>

<style scoped>

</style>